import HttpUtils from './server';

//获取验证码
export const getImgCode = (params) => { return HttpUtils.post('//elm.cangdu.org/v1/captchas', params) };
//登录、注册
export const login = (params) => { return HttpUtils.post('//elm.cangdu.org/v2/login', params) };
//获取首页分类
export const queryIndexEntry = (params) => { return HttpUtils.get('//elm.cangdu.org/v2/index_entry', params) };
//获取首页分类
export const restaurants = (params) => { return HttpUtils.get('//elm.cangdu.org/shopping/restaurants', params) };